import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";

/*推广管理-推广账户-佣金账户*/
export const getAgentAccountTotalAgent = (params?) => {
  return http.request("get", "/api/business/agent_account/totalAgent",{ params });
};
/*流水类型*/
export const getFlowAgentFlowType = (params?) => {
  return http.request("get", "/api/constantList/flowAgentFlowType",{ params });
};
/*推广管理-推广账户-佣金结算明细*/
export const getFlowAgentListAgent = (params?)=> {
  return http.request("get","/api/business/finance_flow_agent/listAgent",{ params});
};
/*推广管理-推广记录-推广金额*/
export const getCountByAgent = (params?)=> {
  return http.request("get","/api/business/salary_payment_schedule/countByAgent",{ params});
};
//输入选择商户
export const getListMerchantName = (params?) => {
  return http.request(
    "get",
    "/api/business/user_data_permissions/listMerchantName",
    { params }
  );
};
/*商户来源*/
export const getListAgentDept = (params?)=> {
  return http.request("get","/api/business/user_data_permissions/listAgentDept",{ params});
};
/*推广管理-推广记录-查询推广记录列表*/
export const getlistByAgentRecords = (params?)=> {
  return http.request("get","/api/business/lg_salary_payment_schedule_commission/listByAgent",{ params});
};
/*查税源*/
export const getlistTaxSourcesRole = (params?)=> {
  return http.request("get","/api/business/user_data_permissions/listTaxSourcesRole",{ params});
};
/*服务公司*/
export const getListDtlAgente = (params?) => {
  return http.request(
    "get",
    "/api/business/commission_settlement/listDtlAgent",
    { params }
  );
};
//提现单状态
export const getWithdrawalOrderState = (params?) => {
  return http.request(
    "get",
    "/api/constantList/AgentWithdrawalOrderState",
    { params }
  );
};
/*提现记录*/
export const getWithdrawalOrderAgentlist = (params?) => {
  return http.request(
    "get",
    "/api/business/withdrawal_order_agent/listAgent",
    { params }
  );
};

/*提现记录-详情*/
export const getWithdrawalOrderAgentInfo = id => {
  return http.request("get", "/core/commission/withdrawal_order_agent/getInfo/" + id);
};


